package com.domain.dao;

import com.domain.pojo.UsersHelp;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UsersHelpMapper {
    int deleteByPrimaryKey(String id);

    int insert(UsersHelp record);

    int insertSelective(UsersHelp record);

    UsersHelp selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(UsersHelp record);

    int updateByPrimaryKey(UsersHelp record);

    List<Map<String, Object>> selectByUsersId(@Param("userId") String userId);

    List<UsersHelp> selectHelpIdAndPublish(@Param("helpId") String helpId, @Param("publishId") String publishId);

    List<UsersHelp> selectByDistinct(@Param("publishId") String publishId);
}